Skip to content

Conversation

@milahu
Copy link

@milahu milahu commented Mar 5, 2024

fix #87

@milahu milahu force-pushed the add-leading-and-trailing-whitespace-to-text-nodes branch from c8b9a1e to 6c27900 Compare March 5, 2024 10:42
@milahu milahu force-pushed the add-leading-and-trailing-whitespace-to-text-nodes branch from 6c27900 to 653d7b2 Compare March 5, 2024 10:46
@milahu milahu force-pushed the add-leading-and-trailing-whitespace-to-text-nodes branch from 653d7b2 to 8801a68 Compare March 5, 2024 10:48
@amaanq
Copy link
Member

amaanq commented May 4, 2024

should the first newline even be considered? what about text: _ => /[^<>&\n][^<>&]*/?

@milahu

This comment was marked as abuse.

"text": {
"type": "PATTERN",
"value": "[^<>&\\s]([^<>&]*[^<>&\\s])?"
"value": "[^<>&]+"

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

leading and trailing whitespace is lost when it should be part of text nodes

3 participants